<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script>
        
        // 对象复制
        let person1 = {name:"lingtong",age:19};
       
        let person2 = {... person1}
        console.log(person2);

        //对象合并
        let age = {age: 15}
        let name = {name: "Amy"}
        let person3 = {...age, ...name}
        console.log(person3)

        
    </script>
</body>
</html>